import { reactive, ref } from "vue";

export default function InitHook() {
  const formDataRef = ref<any>(null);
  const loading = ref<boolean>(false);
  const formState = reactive<Base.GeneraDataType>({
    insuranceFeeRatio: 0.3,
    waybillId: "",
    customerName: "",
    insuranceAmount: 0,
    insuranceCompanyName: "",
    channelName: "",
    actualWeight: 0
  });

  return {
    formDataRef,
    loading,
    formState
  };
}
